<template>
  <div class="detail-info">
    <div class="d-left">
      <img :src="detailInfo.logo" alt="" />
      <div class="d-text">
        <div class="d-name">
          {{ detailInfo.baseName | formatStatus }}
          <el-tag :type="detailInfo.state?'success':'danger'" effect="plain" size="small">{{
            detailInfo.state?'正常':'已禁用'
          }}</el-tag>
        </div>
        <div class="d-time">{{ infoKey1 }}{{ detailInfo.baseCreateTime | formatStatus }}</div>
      </div>
    </div>
    <div class="d-right">
      <slot></slot>
    </div>
  </div>
</template>

<script>
export default {
  name: "DetailHearder",
  props: {
    detailInfo: {
      type: Object,
      default: () => {},
    },
    infoKey1: {
      type: String,
      default: "",
    },
  },
  components: {},
  data() {
    return {};
  },
  created() {},
  methods: {},
};
</script>

<style lang="scss" scoped>
.detail-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  margin-bottom: 10px;
  .d-left {
    display: flex;
    align-items: center;
    img {
      width: 50px;
      height: 50px;
      outline: 1px solid #f3f3f3;
    }
    .d-text {
      margin-left: 20px;
      .d-name {
        font-size: 16px;
        font-weight: bold;
        .el-tag {
          margin-left: 10px;
        }
      }
      .d-time {
        color: #999;
        margin-top: 10px;
        font-size: 12px;
      }
    }
  }
  .d-right {
    display: flex;
    align-items: center;
    .el-button {
      margin-left: 20px;
    }
  }
}
</style>
